|
Diazo, previously named xdv, is a general-purpose, open source website theming tool. It is written in Python and generates XSLT. Diazo creates a separation between theme pages (static HTML) and transformation rules (Diazo's own domain specific language based in XML), allowing web designers to work on templates in plain HTML, without knowledge of XSLT or special template-related codes. Diazo creates a themed site by using user-defined rules to combine vanilla content from a dynamic website together with a static HTML theme. The rules file (conventionally named rules.xml ) has directives which, for example, may replace the contents of an HTML node in the theme with the contents of one in the content.== Web server support == The Diazo compiler generates XSLT, which can be deployed on any proxying web server with an XSLT processor such as Apache (using mod_transform), Varnish, or WSGI. WSGI also has more direct Diazo support: the ''DiazoMiddleware'' filter will compile and cache Diazo themes on the fly. Nginx has an XSLT processor,〔http://wiki.nginx.org/HttpXsltModule〕 but, as of March 2012, it requires the unthemed website (the content) to use strict XHTML. The strict requirement can be relaxed, however, if a patched version of Nginx is used.〔(nginx-xslt-html-parser ), Laurence Rowe〕〔Nginx with html xslt support ((html-xslt on Google code )), patches Nginx 0.7.67 from 15 June 2010〕 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Diazo (software)」の詳細全文を読む スポンサード リンク
|